package lab01;
import java.util.Scanner;
public class Test08 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入1个在1-100间的一个整数");
        int result2 = (int) (Math.random() * 100) + 1;
        while (true) {
            int result1 = sc.nextInt();
            if (result2 > result1) {
                System.out.println("猜小了");
            } else if (result2 < result1) {
                System.out.println("猜大了");
            } else {
                System.out.println("猜对了");
                break;
            }
        }
    }
}